package com.ymttest.database.mapping.agentrebate;

import com.ymttest.database.model.agentrebate.Ymt_ConditionRebate;
import com.ymttest.database.model.agentrebate.Ymt_ConditionRebateExample;
import java.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.type.JdbcType;

public interface Ymt_ConditionRebateMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_ConditionRebate
     *
     * @mbggenerated Sun Jun 28 14:37:58 CST 2020
     */
    @Insert({
        "insert into Ymt_ConditionRebate (ConditionRebateId, UserId, ",
        "BrandIdList, FirstCategoryIdList, ",
        "DepotIdList, ConditionType, ",
        "Action, CreateTime, ",
        "UpdateTime)",
        "values (#{conditionRebateId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, ",
        "#{brandIdList,jdbcType=VARCHAR}, #{firstCategoryIdList,jdbcType=VARCHAR}, ",
        "#{depotIdList,jdbcType=VARCHAR}, #{conditionType,jdbcType=INTEGER}, ",
        "#{action,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{updateTime,jdbcType=TIMESTAMP})"
    })
    int insert(Ymt_ConditionRebate record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_ConditionRebate
     *
     * @mbggenerated Sun Jun 28 14:37:58 CST 2020
     */
    @InsertProvider(type=Ymt_ConditionRebateSqlProvider.class, method="insertSelective")
    int insertSelective(Ymt_ConditionRebate record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_ConditionRebate
     *
     * @mbggenerated Sun Jun 28 14:37:58 CST 2020
     */
    @SelectProvider(type=Ymt_ConditionRebateSqlProvider.class, method="selectByExample")
    List<Ymt_ConditionRebate> selectByExample(Ymt_ConditionRebateExample example);
}